package com.bwie.controller;
import com.bwie.domain.Order;
import com.bwie.service.OrderService;
import com.bwie.service.impl.OrderServiceImpl;
import com.bwie.utils.R;
import org.springframework.web.bind.annotation.*;

import org.springframework.beans.factory.annotation.Autowired;

/**
* (t_order)表控制层
*
* @author xxxxx
*/
@RestController
@RequestMapping("/order/index")
public class OrderController {
/**
* 服务对象
*/
    @Autowired
    private OrderService orderService;

    @GetMapping("/getOrderList")
    public R getOrderList(){
        return orderService.getOrderList();
    }

    @PostMapping("/deleteOrder/{id}")
    public R deleteOrder(@PathVariable("id") Long id){
        return orderService.deleteOrder(id);
    }


}
